package com.janko.springbootbase.designmode.observer.v4final;

/**
 * @Description 类文件说明
 * @Author nieyankang
 * @Version 1.0
 * @date {date} {time}
 */
public class Client {
    /**
     * 应用场景： ATM取款机、 删除通用事件. 事件通知、发布/订阅 等
     *
     */
    public static void main(String[] args) {

        HanFeiZi hanFeiZi=new HanFeiZi();
        hanFeiZi.addObserver(new Lianpo());
        hanFeiZi.addObserver(new Lisi());

        hanFeiZi.haveBreakfast();

    }
}
